//
//  UITextView+Placeholder.h
//  GLGW_Shoping
//
//  Created by yang on 2018/11/28.
//  Copyright © 2018年 yang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CYEmoticonCell.h"

NS_ASSUME_NONNULL_BEGIN

@interface UITextView (Placeholder)
/**
 textView placeholder text
 */
@property (nonatomic ,copy)NSString *placeholder;
/**
 textView placeholder textColor
 */
@property (nonatomic ,strong)NSDictionary *placeholderAttributes;
/**
 the max inputLenth
 */
@property (nonatomic ,assign)NSInteger maxInputLength;

/**
 内边距 为placehoder和text内边距，如不设置，则为默认设置
 */
@property(nonatomic, assign) UIEdgeInsets newTextContainerInset;


/**
 将textView中的图片转成字符
 */
- (NSString *)fullText;

/**
 将textView中的图片转成字符
 */
+ (NSString *)fullTextWithAttriStr:(NSAttributedString *)attriStr;

/**
 插入表情的方法
 */
- (void)insertEmoticon:(CYEmoticonCell *)cell;

@end

NS_ASSUME_NONNULL_END
